package branch.action;

import branch.Branch;
import branch.BranchConnectionThread;
import branch.snapshot.BranchRecord;
import branch.snapshot.Marker;

public class UpdateSnapshotResultAction implements IBranchAction{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1217366447846401318L;
	
	private Marker marker;
	BranchRecord branchRecord;

	public UpdateSnapshotResultAction(Marker marker, BranchRecord branchRecord) {
		this.marker = marker;
		this.branchRecord = branchRecord;
	}

	@Override
	public void execute(BranchConnectionThread branchConnectionThread) {
		// TODO Auto-generated method stub
		Branch branch = branchConnectionThread.getBranch();
		branch.addBranchRecordToSnapshot(branchRecord);
	}

}
